package com.ruoyi.system.mapper.process;


import com.ruoyi.system.domain.process.ProcessAluminizedInventory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 镀铝和加工库存关联Mapper接口
 * 
 * @author ljx
 * @date 2020-07-09
 */
public interface ProcessAluminizedInventoryMapper 
{
    /**
     * 查询镀铝和加工库存关联
     * 
     * @param id 镀铝和加工库存关联ID
     * @return 镀铝和加工库存关联
     */
    public ProcessAluminizedInventory selectProcessAluminizedInventoryById(Long id);

    /**
     * 查询镀铝和加工库存关联列表
     * 
     * @param processAluminizedInventory 镀铝和加工库存关联
     * @return 镀铝和加工库存关联集合
     */
    public List<ProcessAluminizedInventory> selectProcessAluminizedInventoryList(ProcessAluminizedInventory processAluminizedInventory);
    List<ProcessAluminizedInventory> selectAluminizedByInventoryId(@Param("ids") List<Long> InvertoryIds);
    /**
     * 新增镀铝和加工库存关联
     * 
     * @param processAluminizedInventory 镀铝和加工库存关联
     * @return 结果
     */
    public int insertProcessAluminizedInventory(ProcessAluminizedInventory processAluminizedInventory);
    //批量插入关联关系表
    int insertList(@Param("aluminizId") Long aluminizId, @Param("inventoryIds") List<String> inventoryIds);

    /**
     * 修改镀铝和加工库存关联
     * 
     * @param processAluminizedInventory 镀铝和加工库存关联
     * @return 结果
     */
    public int updateProcessAluminizedInventory(ProcessAluminizedInventory processAluminizedInventory);

    /**
     * 删除镀铝和加工库存关联
     * 
     * @param id 镀铝和加工库存关联ID
     * @return 结果
     */
    public int deleteProcessAluminizedInventoryById(Long id);

    /**
     * 批量删除镀铝和加工库存关联
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteProcessAluminizedInventoryByIds(String[] ids);
    int deleteInventoryByIds(String[] ids);
    int deleteInventoryByInventoryIds(Long inventoryId);
}
